<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            height: 4000px;
        }
        img {
            position: absolute;
        }
    </style>
</head>
<body>
    <img src="images/angel.gif" alt="">
    <script>
       var ag =  document.querySelector('img')
        document.addEventListener('mousemove',function(e){
                ag.style.left = e.pageX-50+'px'
                ag.style.top = e.pageY-40+'px'
                
                console.log();
                
        })
    </script>
</body>
</html>